package com.study.convention.exception;

import com.study.convention.errorCode.BaseErrorCode;
import com.study.convention.errorCode.IErrorCode;
import lombok.ToString;

/**
 * @author canace
 * @version 1.0
 * @description 客户端异常
 * @date 2024/1/22 20:04
 */
@ToString
public class ClientException extends AbstractException{

    public ClientException(IErrorCode errorCode) {
        this(null, null, errorCode);
    }

    public ClientException(String message) {
        this(message, null, BaseErrorCode.CLIENT_ERROR);
    }

    public ClientException(String message, IErrorCode errorCode) {
        this(message, null, errorCode);
    }

    public ClientException(String message, Throwable throwable, IErrorCode errorCode) {
        super(message, throwable, errorCode);
    }
}
